package com.jtny.nytb.config.dataalarm.vo;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@ApiModel("数据报警点管理VO对象")
@Data
public class DataAlarmVO implements Serializable {

    @ApiModelProperty("主键id")
    private Long id;

    @ApiModelProperty("参量编号")
    @NotBlank(message = "参量编号不能为空")
    private String code;

    @ApiModelProperty("参量id")
    private Long dataParamId;

    @ApiModelProperty("参量名称")
    private String name;

    @ApiModelProperty("参量来源：1-手动填报，2-系统计算，3-常量，4-手动填报")
    private Integer source;

    @ApiModelProperty("报警点名称")
    @NotBlank(message = "报警点名称不能为空")
    private String alarmName;

    @ApiModelProperty("报警分类")
    @NotBlank(message = "报警分类不能为空")
    private String alarmType;

    @ApiModelProperty("报警条件")
    @NotBlank(message = "报警条件不能为空")
    private String alarmCondition;

    @ApiModelProperty("报警内容")
    @NotBlank(message = "报警内容不能为空")
    private String alarmDescribe;

    @ApiModelProperty("报警等级")
    private String alarmClass;

    @ApiModelProperty("参量别名")
    private String parameterName;

}
